<template>
    <div class="resume-content">
        <div class="box shadow">

            <h3> 伪元素实现的阴影效果</h3>
            <h3> 伪元素实现的阴影效果</h3>
            <h3> 伪元素实现的阴影效果</h3>
            <div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "HelloWorld"
    }
</script>

<style lang="scss">

    .box h3 {
        text-align: center;
        position: relative;
        top: 40px;
        margin: 0;
        padding: 0;

    }

    .box {
        width: 400px;
        height: 200px;
        z-index: 1;
        margin: 40px auto;
        border: 1px solid #40f755;

        & > div {
            position: absolute;
            z-index: 1;
            background-color: white;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
        }
    }

    .shadow {
        position: relative;
    }

    .shadow:before, .shadow:after {
        position: absolute;
        content: "";
        bottom: 15px;
        left: 10px;
        width: 50%;
        top: 80%;
        max-width: 300px;
        background: #777;
        box-shadow: 0 15px 10px #aaa;
        transform: rotate(-3deg);
    }

    .shadow:after {
        transform: rotate(3deg);
        right: 10px;
        left: auto;
    }


</style>
